<?php
/**
 * 云打印平台，快递员关联
 * @author lss
 * 2017-08-14
 */
namespace soa\mp;

use soa\client;

class courierConn  extends client
{
    /**
     * 服务地址
     * @var string
     */
    public $service_url = 'http://mp.kuaidihelp.com/';

    /**
     * 服务名称
     * @var string
     */
    protected $service_name = 'kuaidihelp_mp';

	//关联
	public function conn($openid,$courierId){
		return $this->post("api/courierConn/conn",compact('openid','courierId'));
	}

	//获取关联的快递员id
	public function getByOpenid($openid){
		return $this->post("api/courierConn/getByOpenid",compact('openid'));
	}

	//获取关联的所有openid
	public function getByCourierId($courierId){
		return $this->post("api/courierConn/getByCourierId",compact('courierId'));
	}
}